export default function createRoute (record,path){
  // [parentRecord,childRecord]
  const matched = [];
  while(record){
    matched.unshift(record)
    record = record.parent
  }
  return {
    path,
    matched
  }
}